package com.llg.model.response;

import com.llg.model.code.ResultCode;
import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> extends ResponseResult{

    //总记录数
    private int totalNum;
    //总页数
    private int totalPage;
    //数据
    private List<T> list;

    public PageResult(ResultCode resultCode, int totalNum, int totalPage, List<T> list) {
        super(resultCode);
        this.totalNum = totalNum;
        this.totalPage = totalPage;
        this.list = list;
    }
}
